import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
import { EGangFightsTeamPos } from "./EGangFightsTeamPos";
type int = number;
//class SGangFightsMemberOper
    
    export  class SGangFightsMemberOper extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGangFightsMemberOper();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.fromEntityId.__write(arg1);
            this.toEntityId.__write(arg1);
            this.newPos.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.fromEntityId = new SEntityId();
            this.fromEntityId.__read(arg1);
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.newPos = EGangFightsTeamPos.__read(arg1);
            return;
        }

        public /* const */_type: int=511;

        public /* var */fromEntityId: SEntityId;

        public /* var */toEntityId: SEntityId;

        public /* var */newPos: EGangFightsTeamPos;

        public static /* var */_regist: SGangFightsMemberOper;
    }

            SGangFightsMemberOper._regist = new SGangFightsMemberOper(true);
        